keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Trixbox2.8.0.4 with Openvox G400P and A400P

13 years 3 months ago #6487 by lisa.gao
Hi,
If you want to add trunk on PSTN line, you can add zap trunk directly. Use the default g0.
In your situation, extra-channels.conf, you configure group=12
1) Click tab Basic->Trunk->Add Custom Trunk->Custom Dial String, fill this:
extra/g0/$OUTNUM$
2) Click tab Basic->Outbound Routes->Trunk Sequence, select:
extra/g0/$OUTNUM$
So extra/g0/$OUTNUM$ should change to your situation.

13 years 3 months ago #6488 by micpet
This is the output when I follow your instructions:

1) Click tab Basic->Trunk->Add Custom Trunk->Custom Dial String, fill this:
extra/g0/$OUTNUM$
2) Click tab Basic->Outbound Routes->Trunk Sequence, select:
extra/g0/$OUTNUM$

Connected to Asterisk 1.6.0.26-FONCORE-r78 currently running on trixbox1 (pid = 2964)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [92454598@from-internal:1] Macro("SIP/200-00000000", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/200-00000000", "AMPUSER=200") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/200-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/200-00000000", "1?Set(REALCALLERIDNUM=200)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/200-00000000", "AMPUSER=200") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/200-00000000", "AMPUSERCIDNAME=Office Clerk") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/200-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/200-00000000", "AMPUSERCID=200") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/200-00000000", "CALLERID(all)="Office Clerk" <200>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/200-00000000", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/200-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/200-00000000", "Using CallerID "Office Clerk" <200>") in new stack
-- Executing [92454598@from-internal:2] Set("SIP/200-00000000", "_NODEST=") in new stack
-- Executing [92454598@from-internal:3] Macro("SIP/200-00000000", "record-enable,200,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/200-00000000", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/200-00000000", "recordingcheck,20110105-104230,1294238550.0") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20110105-104230,1294238550.0: Outbound recording not enabled
-- <SIP/200-00000000>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/200-00000000", "") in new stack
-- Executing [92454598@from-internal:4] Macro("SIP/200-00000000", "dialout-trunk,2,2454598,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/200-00000000", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/200-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/200-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/200-00000000", "DIAL_NUMBER=2454598") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/200-00000000", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/200-00000000", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/200-00000000", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/200-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/200-00000000", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/200-00000000", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/200-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/200-00000000", "0?Set(REALCALLERIDNUM=200)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/200-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/200-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/200-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/200-00000000", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/200-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/200-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/200-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/200-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/200-00000000", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/200-00000000", "OUTNUM=2454598") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/200-00000000", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/200-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/200-00000000", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/200-00000000", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/200-00000000", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/200-00000000", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing [s@macro-dialout-trunk:21] Set("SIP/200-00000000", "pre_num=AMP:extra/g0/") in new stack
-- Executing [s@macro-dialout-trunk:22] Set("SIP/200-00000000", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/200-00000000", "post_num=") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/200-00000000", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,25)
-- Executing [s@macro-dialout-trunk:25] Set("SIP/200-00000000", "the_num=2454598") in new stack
-- Executing [s@macro-dialout-trunk:26] Dial("SIP/200-00000000", "extra/g0/2454598,300,") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:27] Goto("SIP/200-00000000", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/200-00000000", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/200-00000000", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [92454598@from-internal:5] Macro("SIP/200-00000000", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/200-00000000", "all-circuits-busy-now,noanswer") in new stack
-- <SIP/200-00000000> Playing 'all-circuits-busy-now.ulaw' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/200-00000000", "pls-try-call-later,noanswer") in new stack
-- <SIP/200-00000000> Playing 'pls-try-call-later.ulaw' (language 'en')
-- Executing [s@macro-outisbusy:3] Macro("SIP/200-00000000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/200-00000000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/200-00000000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/200-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/200-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/200-00000000' in macro 'hangupcall'
== Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/200-00000000' in macro 'outisbusy'
== Spawn extension (from-internal, 92454598, 5) exited non-zero on 'SIP/200-00000000'
-- Executing [h@from-internal:1] Macro("SIP/200-00000000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/200-00000000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/200-00000000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/200-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/200-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/200-00000000' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-00000000'
trixbox1*CLI>


chan_extra.conf
;
; DAHDI telephony
;
; Configuration file
;

[trunkgroups]


[channels]

language=en
context=from-gsm

usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1

#include extra-channels.conf

chan_dahdi.conf

;
; DAHDI telephony
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include setup-pstn configs
#include dahdi-channels.conf

group=1

;Include PBXconfig configs
#include chan_dahdi_additional.conf

Is it ok that both have group 0? Is there any document that has good explanation of the conf filkes in asterisk?
13 years 3 months ago #6489 by micpet
Temporary Solution.

1. added to bottom of /etc/asterisk/extensions_custom.conf
[from-gsm]
exten => s,1,Answer()
exten => s,n,Goto(ext-group,600,1)
exten => s,n,Hangup

2. added trunks
extra/5/$OUTNUM$
extra/7/$OUTNUM$
extra/g0/$OUTNUM$ did not work. I also tried g12, g13, g63 with no luck.

3. Added another SIM/GSM card from a different provider. The SIMs used to test which are the ones I have to use in production did not work. I will call the provider tomorrow and hope all works as their rates are great.

If all works well I will be back to mark this post as SOLVED.
13 years 3 months ago #6490 by lisa.gao
Hi,
If you add inbound on webpage, you don't need to write dialplan in extensions.conf. If possible, please give me ssh to check. My Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
If there is result, please let us know.

13 years 3 months ago #6491 by micpet
ssh not possible. I do not have static ip and have to go through adsl modem and router and will not be able to setup soon. How do I change the tones for the G400P? I believe that the Digicel SIMs that are giving the problem might be 'uk' and the default I have setup is 'us'. Is it possible to change the tone pattern per slot on the G400P? When I try to dial out I get "all circuits are busy now" and when dial in I get "the number you have dialed is unavailable". If I change the SIM it works. All SIMs work in the phones.
13 years 3 months ago #6493 by lisa.gao
Hi,
1) You can change country mode to UK following these steps:
In /etc/asterisk/indications.conf, country=uk
Load driver using this command: modprobe opvxg4xx opermode=United Kingdom
2) SIM cards on G400P can't set to different country mode.
If any problem , you can add my G talk: This email address is being protected from spambots. You need JavaScript enabled to view it. or MSN: This email address is being protected from spambots. You need JavaScript enabled to view it.

Time to create page: 0.044 seconds
Powered by Kunena Forum